<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<script type="text/javascript" src="../js/jquery-1.11.1.min.js"></script>
<%
   String contextPath = request.getContextPath();
%>      
<div id="wrapper">
<div id="container_sub">
<div id="sub_page_bg4"></div>
<div id="content_list">
<div class="title">
	<div class="sub_title">
			<li>프로포즈</li>
			<li class="stitle">나만의 짝을 찾기 위한 프로포즈</li>
	</div>
	<div class="navig">
		
		<li class='frst'><img src='../image/all/home_icon.png' align='absmiddle' width='13' height='13'> <a href='<%=contextPath%>/main/index.do'>HOME</a></li>
		<li>회원서비스</li>
		<li>구혼정보수정</li>
	</div>
		<ul class='sub_menu'>		
	  <ul class="sub_tab">
		<li><a class='over' href="<%=contextPath%>/propose/write.do">프로포즈</a></li>
		<li><a class='rollover' href="<%=contextPath%>/propose/search.do">이상형찾기</a></li>
		<li><a class='rollover' href="<%=contextPath %>/recommend/allList.do">회원현황</a></li>
		<li><a class='rollover' href="<%=contextPath %>/eventBoard/list.do">파티&미팅</a></li>
		<li><a class='rollover' href="<%=contextPath %>/dcourseBoard/list.do">데이트코스</a></li>
	  </ul>
	 </ul>	
	 <div>
		<br>
		<nav id ="bo_cate">
			<ul id="bo_cate_ul">
            	<li><a href="<%=contextPath%>/propose/write.do">구혼정보등록</a></li>
            	<li><a href="<%=contextPath%>/propose/proposeModify.do" id="bo_cate_on">구혼정보수정</a></li>
            	<li><a href="<%=contextPath%>/propose/proposeDelete.do">구혼정보삭제</a></li>
      		</ul>
      	</nav>
	</div>
	<!-- 입력폼 시작 -->
<form:form id="fregisterform" enctype="multipart/form-data" action="proposeModify.do" commandName="proposeCommand">
<div class="tb_frm01 tb1_wrap">
<fieldset class="join_Fieldset">
	<legend class="hiddenL">구혼정보수정</legend>
	<div style="margin:30px 0;" class="189">
	<h5  class="joinTxt-1" align="center"><구혼정보 수정></h5>
	<c:if test="${!empty proposeCommand}">
	<h4 class="joinTxt-1">기본정보</h4>
		
		<form:hidden path="id"/>
		<form:errors element="div"/>
		<div class="joinWrap">
			<div class="row">
					<label for="id" class="joinLabel-1"><spring:message code="join.form.id"/></label>
					${proposeCommand.id}
			</div>
			<div class="row">
					<label for="name" class="joinLabel-1"><spring:message code="join.form.name"/></label>
					${proposeCommand.name}
			</div>
			<div class="row">
					<label for="birth" class="joinLabel-1"><spring:message code="join.form.birth"/></label>
					${proposeCommand.birth}
			</div>
			<div class="sex">
					<label for="sex" class="joinLabel-1"><spring:message code="join.form.sex"/></label>
					<c:if test="${proposeCommand.sex=='1'}">남</c:if>
					<c:if test="${proposeCommand.sex=='2'}">여</c:if>
			</div>
		
	</div>
	</div>
	<div style="margin:30px 0;">
		<h4 class="joinTxt-1">구혼정보 수정</h4>
		<div class="joinWrap" >
			<div class="row">
				<label for="upload" class="joinLabel-1">프로필 사진</label>
					<input type="file" name="upload" id="upload"><br>
			</div>
			<div class="row">
				<label for="region"  class="joinLabel-1"><spring:message code="join.form.region"/></label>
				<form:select path="region">
					<form:option value="1">서울</form:option>
					<form:option value="2">인천</form:option>
					<form:option value="3">대전</form:option>
					<form:option value="4">광주</form:option>
					<form:option value="5">대구</form:option>
					<form:option value="6">울산</form:option>
					<form:option value="7">부산</form:option>
					<form:option value="8">경기</form:option>
					<form:option value="9">강원</form:option>
					<form:option value="10">충북</form:option>
					<form:option value="11">충남</form:option>
					<form:option value="12">전북</form:option>
					<form:option value="13">전남</form:option>
					<form:option value="14">경북</form:option>
					<form:option value="15">경남</form:option>
					<form:option value="16">제주</form:option>
				</form:select>
				<form:errors path="region"/>
			</div>
			<div class="row">
				<label for="religion" class="joinLabel-1"><spring:message code="join.form.religion"/></label>
					<form:select path="religion">
					<form:option value="1">기독교</form:option>
					<form:option value="2">천주교</form:option>
					<form:option value="3">불교</form:option>
					<form:option value="4">기타</form:option>
				</form:select>
				<form:errors path="religion"/>
			</div>
			<div class="row">
				<label for="acaability" class="joinLabel-1"><spring:message code="join.form.acaability"/></label>
					<form:select path="acaability">
						<form:option value="1">초등학교 졸업</form:option>
						<form:option value="2">중학교 졸업</form:option>
						<form:option value="3">고등학교 졸업</form:option>
						<form:option value="4">전문대 졸업</form:option>
						<form:option value="5">대학교 졸업 이상</form:option>	
				</form:select>
				<form:errors path="acaability"/>
			</div>
			<div class="row">
				<label for="jobcluster" class="joinLabel-1"><spring:message code="join.form.jobcluster"/></label>
				<form:select path="jobcluster">
					<form:option value="1">공무원</form:option>
					<form:option value="2">회사원</form:option>
					<form:option value="3">전문직</form:option>
					<form:option value="4">자영업</form:option>
					<form:option value="5">기타</form:option>
				</form:select>
				<form:errors path="jobcluster"/>
			</div>
			<div class="row">
				<label for="job" class="joinLabel-1"><spring:message code="join.form.job"/></label>
					<form:input path="job" size="10" maxlength="20"/>
					<form:errors path="job"/>			
			</div>
			<div class="row">
				<label for="salary" class="joinLabel-1"><spring:message code="join.form.salary"/></label>
					<form:input path="salary" size="8" maxlength="6"/>만원
					<form:errors path="salary"/>			
			</div>
			<div class="row">
				<label for="height" class="joinLabel-1"><spring:message code="join.form.height"/></label>
					<form:select path="height">
					<form:option value="150">150cm 이하</form:option>
					<form:option value="151">151cm</form:option>
					<form:option value="152">152cm</form:option>
					<form:option value="153">153cm</form:option>
					<form:option value="154">154cm</form:option>
					<form:option value="155">155cm</form:option>
					<form:option value="156">156cm</form:option>
					<form:option value="157">157cm</form:option>
					<form:option value="158">158cm</form:option>
					<form:option value="159">159cm</form:option>
					<form:option value="160">160cm</form:option>
					<form:option value="161">161cm</form:option>
					<form:option value="162">162cm</form:option>
					<form:option value="163">163cm</form:option>
					<form:option value="164">164cm</form:option>
					<form:option value="165">165cm</form:option>
					<form:option value="166">166cm</form:option>
					<form:option value="167">167cm</form:option>
					<form:option value="168">168cm</form:option>
					<form:option value="169">169cm</form:option>
					<form:option value="170">170cm</form:option>
					<form:option value="171">171cm</form:option>
					<form:option value="172">172cm</form:option>
					<form:option value="173">173cm</form:option>
					<form:option value="174">174cm</form:option>
					<form:option value="175">175cm</form:option>
					<form:option value="176">176cm</form:option>
					<form:option value="177">177cm</form:option>
					<form:option value="178">178cm</form:option>
					<form:option value="179">179cm</form:option>
					<form:option value="180">180cm</form:option>
					<form:option value="181">181cm</form:option>
					<form:option value="182">182cm</form:option>
					<form:option value="183">183cm</form:option>
					<form:option value="184">184cm</form:option>
					<form:option value="185">185cm</form:option>
					<form:option value="186">186cm</form:option>
					<form:option value="187">187cm</form:option>
					<form:option value="188">188cm</form:option>
					<form:option value="189">189cm</form:option>
					<form:option value="190">190cm 이상</form:option>
					<form:errors path="height"/>
				</form:select>
			</div>
			<div class="row">
				<label for="exmarry"  class="joinLabel-1"><spring:message code="join.form.exmarry"/></label>
					<form:radiobutton path="exmarry" label="초혼" value="1"/>
					<form:radiobutton path="exmarry" label="재혼" value="2"/>
					<form:errors path="exmarry"/>
			</div>
			<div class="row">
				<label for="weight" class="joinLabel-1"><spring:message code="join.form.weight"/></label>
					<form:select path="weight">
					<form:option value="40">40kg 이하</form:option>
					<form:option value="41">41kg</form:option>
					<form:option value="42">42kg</form:option>
					<form:option value="43">43kg</form:option>
					<form:option value="44">44kg</form:option>
					<form:option value="45">45kg</form:option>
					<form:option value="46">46kg</form:option>
					<form:option value="47">47kg</form:option>
					<form:option value="48">48kg</form:option>
					<form:option value="49">49kg</form:option>
					<form:option value="50">50kg</form:option>
					<form:option value="51">51kg</form:option>
					<form:option value="52">52kg</form:option>
					<form:option value="53">53kg</form:option>
					<form:option value="54">54kg</form:option>
					<form:option value="55">55kg</form:option>
					<form:option value="56">56kg</form:option>
					<form:option value="57">57kg</form:option>
					<form:option value="58">58kg</form:option>
					<form:option value="59">59kg</form:option>
					<form:option value="60">60kg</form:option>
					<form:option value="61">61kg</form:option>
					<form:option value="62">62kg</form:option>
					<form:option value="63">63kg</form:option>
					<form:option value="64">64kg</form:option>
					<form:option value="65">65kg</form:option>
					<form:option value="66">66kg</form:option>
					<form:option value="67">67kg</form:option>
					<form:option value="68">68kg</form:option>
					<form:option value="69">69kg</form:option>
					<form:option value="70">70kg</form:option>
					<form:option value="71">71kg</form:option>
					<form:option value="72">72kg</form:option>
					<form:option value="73">73kg</form:option>
					<form:option value="74">74kg</form:option>
					<form:option value="75">75kg</form:option>
					<form:option value="76">76kg</form:option>
					<form:option value="77">77kg</form:option>
					<form:option value="78">78kg</form:option>
					<form:option value="79">79kg</form:option>
					<form:option value="80">80kg</form:option>
					<form:option value="81">81kg</form:option>
					<form:option value="82">82kg</form:option>
					<form:option value="83">83kg</form:option>
					<form:option value="84">84kg</form:option>
					<form:option value="85">85kg</form:option>
					<form:option value="86">86kg</form:option>
					<form:option value="87">87kg</form:option>
					<form:option value="88">88kg</form:option>
					<form:option value="89">89kg</form:option>
					<form:option value="90">90kg 이상</form:option>
				</form:select>
				<span>선택입력 사항입니다.</span>
			</div>
			<div class="row">
				<label for="bloodtype"  class="joinLabel-1"><spring:message code="join.form.bloodtype"/></label>
				<form:select path="bloodtype">
					<form:option value="A">A형</form:option>
					<form:option value="B">B형</form:option>
					<form:option value="AB">AB형</form:option>
					<form:option value="O">O형</form:option>
				</form:select>
				<span>선택입력 사항입니다.</span>
			</div>
			<div class="row">
				<label for="content" class="joinLabel-1">자기소개</label>
					<form:textarea path="content" maxlength="1000"/>
					<form:errors path="content"/>			
			</div><br>
			<div class="row">
				<label for="password" class="joinLabel-1">글 비밀번호</label>
					<form:password path="password"/>
					<form:errors path="password"/>
			</div>
		</div>
		
	</div> 
		<input type="submit" value="구혼정보 수정">
		<input type="button" value="<spring:message code="list.content.cancel"/>" onclick="location.href='<%=contextPath%>/main/index.do'">
	</fieldset>
	</c:if>
	<c:if test="${empty proposeCommand}">
		<div style="text-align:center; padding-top:150px">구혼정보가 없습니다.</div>
	</c:if>
	
</div>
</form:form>
</div>
</div>
</div>
</div>